﻿using System;

namespace FirstFloor.P2P
{
    /// <summary>
    /// Provides data for the ConnectionTypeChanged event.
    /// </summary>
    public class P2PConnectionTypeEventArgs
        : EventArgs
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="P2PConnectionTypeEventArgs"/> class.
        /// </summary>
        /// <param name="type">The type.</param>
        public P2PConnectionTypeEventArgs(P2PConnectionType type)
        {
            this.Type = type;
        }

        /// <summary>
        /// Gets the type.
        /// </summary>
        /// <value>The type.</value>
        public P2PConnectionType Type { get; private set; }
    }
}
